import request from '@/utils/request'

/**
 * @description 获取装修数据
 */
export const apiDecoratePage = (params: { type: number }) =>
    request.get({ url: '/decoratePage/getDecorate', data: params })

/**
 * @description 精选课程列表
 */
export const apiChoiceCourseLists = () => request.get({ url: '/course/chosen/list' })

/**
 * @description 课程列表
 */
export const apiCourseLists = (params: any) => request.get({ url: '/course/list', data: params })

/**
 * @description 热门课程列表
 */
export const apihotCourseLists = () => request.get({ url: '/course/hot/list' })

/**
 * @description 课程分类
 */
export const apiCategoryLists = () => request.get({ url: '/course/category/list' })

/**
 * @description 商品服务分类
 */
export const apiGoodsCategoryLists = (params: any) =>
    request.get({ url: '/goods_category/otherLists', data: params })

/**
 * @description 服务列表
 */
export const apiGoodsLists = (params: any) => request.get({ url: '/goods/lists', data: params })

/**
 * @description 服务师傅
 */
export const apiStaffLists = (params: any) => request.get({ url: '/staff/lists', data: params })

/**
 * @description 讲师主页
 */
export const apiTeacherDetail = (params: any) =>
    request.get({ url: '/teacher/detail', data: params })

/**
 * @description 学习课程列表
 */
export const apiCtudyCourseLists = () => request.get({ url: '/course/mine/list' })

/**
 * @description 专题专区
 */
export const apiSubjectLists = (params: any) => request.get({ url: '/subject/list' })

/**
 * @description 专题专区
 */
export const apiSubjectDetail = (params: { id: number | string }) =>
    request.get({ url: '/subject/detail', data: params })

/**
 * @description 热门课程
 */
export const apiHotLists = (params: any) => request.get({ url: '/course/hot/list', data: params })
